import http from "@/utils/http";
//获取表格数据列表
export const getList = (params) => {
  return http.post("/project/czhtqd/list", params);
};
//获取数据统计
export const getCount = (params) => {
  return http.post("/project/czhtqd/list-statistics", params);
};
//新增
export const addRecords = (params) => {
  return http.post(`/project/czhtqd/add`, params);
};
//编辑
export const editRecords = (params) => {
  return http.put(`/project/czhtqd`, params);
};
//删除
export const delRecords = (id) => {
  return http.del(`/project/czhtqd/${id}`);
};
//详情
export const detail = (id) => {
  return http.get(`/project/czhtqd/${id}`);
};
//根据名称检索原项目名称
export const findOriginalProject = (params) => {
  return http.get("/project/czhtqd/getOriginalProjectInfo", params);
};
//导出
export const exportRecords = (params = {}) => {
  return http.post("/project/czhtqd/export", params, {
    responseType: "blob",
  });
};
